package com.pz.cloud.framework.business.society.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pz.cloud.framework.base.model.WorkflowEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用户社团中间表
 * @author mzz
 */
@Data
@TableName("org_society_user")
@ApiModel(value = "org_society_user对象", description = "社团人员表")
public class OrgSocietyUser extends WorkflowEntity {
    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "社团id",required = true)
    private String societyId;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id",required = true)
    private String userId;
    /**
     * 是否负责人 0否 1是
     */
    @ApiModelProperty(value = "是否负责人 0否 1是",required = true)
    private Integer isDirector;
    /**
     * 用户姓名
     */
    @ApiModelProperty(value = "用户姓名",required = true)
    @Excel(name = "用户姓名", width = 15)
    private String realname;
    /**
     * 用户学号，导入用
     */
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String userNo;

    @ApiModelProperty(value = "申请理由")
    private String reason;//申请理由
    /**
     * 社团名称
     */
    @Excel(name = "社团名称", width = 15)
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String societyName;

    /**学院*/
    @Excel(name = "学院", width = 15)
    @ApiModelProperty(value = "学院")
    @TableField(exist = false)
    private String college;

    /**专业*/
    @Excel(name = "专业", width = 15)
    @ApiModelProperty(value = "专业")
    @TableField(exist = false)
    private String major;

    /**年级*/
    @Excel(name = "年级", width = 15)
    @ApiModelProperty(value = "年级")
    @TableField(exist = false)
    private String grade;

    /**班级*/
    @Excel(name = "班级", width = 15)
    @ApiModelProperty(value = "班级")
    @TableField(exist = false)
    private String clazz;

    @ApiModelProperty(value = "加入时间")
    @Excel(name = "加入时间", width = 15,format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date joinTime;//加入时间

    @ApiModelProperty(value = "离开时间")
    @Excel(name = "离开时间", width = 15,format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date leaveTime;//离开时间


}
